package com.base.param;

import cn.hutool.core.util.StrUtil;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class WhereParam {
    private String columnCode;
    private SqlKeyword symbol;
    private Object value;

    public Object getValue() {
        if (StrUtil.isEmptyIfStr(value)) {
            return null;
        }
        return value;
    }
}